
class State:
    
    def __init__(self, board=None, level=None, turn=None, first_ply=None):
        self.board = board
        self.level = level
        self.turn = turn
        self.first_ply = first_ply
        self.kicks = 0
        self.player_with_ball = None
        
    def do_move_player(self, move):
        """ Applies player's move to the current state """
        team_player = self.board[move.piece.team.orientation]
        move.piece.square = move.square
        #player = team_player.get_player(move.piece.id)
        #player.square = move.square
        
        
    def do_move_ball(self, move):
        """ Applies ball's move to the current state """
        #self.player_with_ball = move.player_moving
        ball = self.board.get_ball()
        ball.square = move.square
     
        